package com.guli.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.ware.dto.PurchaseDemandingMergeTo;
import com.guli.common.utils.PageUtils;
import com.guli.ware.entity.PurchaseEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 采购信息
 *
 * @author zzb
 * @email 1626131069@qq.com
 * @date 2023-11-24 22:39:12
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils unreceiveList();

    @Transactional
    void mergePurchaseOrder(PurchaseDemandingMergeTo purchaseDemandingMergeTo);

    @Transactional
    void receiveOrder(Long purchaseOrderId);

    @Transactional
    void finishOrder(Long purchaseOrderId,String isPurchase);
}

